﻿using System;
using System.Windows.Forms;

namespace CustomWindows.Window_API
{
    public class WindowsFunctionFactory
    {
		#region Methods (1) 

		// Public Methods (1) 

        public WindowsFunction CreateFunction(IntPtr hwnd, IntPtr hotkeyNumber)
        {
            switch((int)hotkeyNumber)
            {
                case 1:
                    return new AlwaysOnTop(hwnd);
                case 2:
                    return new ToggleScreenState(hwnd);
                case 3:
                    return new Transparency(hwnd);
                case 4:
                    return new WindowMover(hwnd, Keys.Left);
                case 5:
                    return new WindowMover(hwnd, Keys.Right);
            }
            return new NullFunction(hwnd);
        }

		#endregion Methods 
    }
}
